using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace MvcApplication5.Models.Mapping
{
    public class T_SBMap : EntityTypeConfiguration<T_SB>
    {
        public T_SBMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.SB)
                .IsRequired()
                .IsFixedLength()
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("T_SB");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.SB).HasColumnName("SB");
        }
    }
}
